[id].vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. <template>
  2. <div id="newsList">
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- 导航栏 -->
  6. <HomePageNavigation1></HomePageNavigation1>
  7. <!-- 列表页广告一 -->
  8. <HomeTopTen :imgurl="adImg1" v-if="adImg1"></HomeTopTen>
  9. <!-- 面包屑导航 -->
  10. <div class="breadcrumb">
  11. <div class="inner">
  12. <span class="location">当前位置:</span>
  13. <el-breadcrumb :separator-icon="ArrowRight">
  14. <el-breadcrumb-item>
  15. <NuxtLink to="/">首页</NuxtLink>
  16. </el-breadcrumb-item>
  17. <el-breadcrumb-item>本网招聘</el-breadcrumb-item>
  18. </el-breadcrumb>
  19. </div>
  20. </div>
  21. <!-- 资讯列表 -->
  22. <div class="newsList">
  23. <div class="inner">
  24. <div class="innerLeft">
  25. <div class="projectMoreBox">
  26. <div class="projectMoreTitle">社会保障在线网</div>
  27. <div class="projectMoreText">
  28. <p><b>政讯通·全国文化旅游项目</b>网络平台由<b>政讯通-全国政务信息一体化办公室</b>主管,联合30多家企事业单位组成,由北京政讯通文化传播有限公司对外牵头运营。</p>
  29. <p><b>政讯通·全国文化旅游项目</b>网络平台有政务、行业独立域名网站各<b>100</b>个和<b>4</b>个综合管理网站共<b>204</b>个网站,按照不同的行业和功能分类为用户提供大体系、广领域、全方位、全过程,有针对性的全国性文化旅游法制综合服务平台。</p>
  30. <p><b>政讯通·全国旅游资讯发布中心</b>是<b>政讯通·全国文化旅游项目</b>网络平台的4个综合管理网站之一,目前开设了栏目上千个,地市中心可全面覆盖我国334个地级市,<b>业务范围</b>涵盖旅游资讯、與情监测、法律咨询、旅游调研、法律宣传、群众监督、旅游安全等领域,日均会员访问量超过万次,累计完成文化旅游领域法制调研课题千余件,网络信息化会员遍布全国各地,实施<b>行业、区域</b>全覆盖,是我国具有广泛传播力、影响力的新型主流媒体。</p>
  31. </div>
  32. </div>
  33. <div class="innerTitle">本网招聘</div>
  34. <ul class="list">
  35. <li v-for="(item, index) in newsList" :key="index">
  36. <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" :title="item.con_title">{{item.con_title}}</NuxtLink>
  37. <!-- <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" target="_blank" v-if="item.islink == 0">{{ item.list_title }}</NuxtLink> -->
  38. </li>
  39. </ul>
  40. <!-- 分页器 -->
  41. <!-- <div class="pagination">
  42. <el-pagination size="small" background layout="prev, pager, next" :total="total" class="mt-4"
  43. prev-text="上一页" next-text="下一页" @change="changePage" />
  44. </div> -->
  45. </div>
  46. <div class="innerRight">
  47. <div class="rightMenuTitle">导航列表</div>
  48. <ul>
  49. <li v-for="(item, index) in bottomMenu" :key="index">
  50. <NuxtLink :to="`/speciaArticle/${item.id}`" v-if="item.id == pageId && item.id != 7" class="active" :title="item.name">{{ item.name }}</NuxtLink>
  51. <NuxtLink :to="`/speciaArticle/${item.id}`" v-else-if="item.id != pageId && item.id != 7" :title="item.name">{{ item.name }}</NuxtLink>
  52. <NuxtLink :to="`/specialList/${item.id}`" v-if="item.id == 7 && pageId == 7 && routeHref == '/specialList/7'" class="active" :title="item.name">{{item.name}}</NuxtLink>
  53. <NuxtLink :to="`/specialList/${item.id}`" v-else-if="item.id == 7" :title="item.name">{{item.name}}</NuxtLink>
  54. </li>
  55. </ul>
  56. </div>
  57. <div style="clear: both;"></div>
  58. </div>
  59. </div>
  60. <!-- 列表页广告二 -->
  61. <HomeTopTen :imgurl="adImg2" v-if="adImg2"></HomeTopTen>
  62. <!-- 页面底部 -->
  63. <HomeFoot1></HomeFoot1>
  64. </div>
  65. </template>
  66. <script setup>
  67. //1.页面依赖 start ---------------------------------------->
  68. import { ElBreadcrumb, ElBreadcrumbItem, ElPagination } from 'element-plus'
  69. import { ArrowRight } from '@element-plus/icons-vue'
  70. //获得跳转过来的id
  71. const route = useRoute();
  72. const pageId = route.params.id;
  73. const routeHref = route.href;
  74. //1.页面依赖 end ---------------------------------------->
  75. //2.页面数据 start ---------------------------------------->
  76. let adImg1 = ref([]);
  77. let adImg2 = ref([]);
  78. async function getAdData(){
  79. const adData = await requestDataPromise('/web/getWebsiteAdvertisement',{method:'GET',query:{'ad_tag':'PAGE'}});
  80. if(adData.code==200){
  81. for(let item of adData.data){
  82. if(item.ad_tag == 'PAGE_0001'){
  83. adImg1.value = item;
  84. }
  85. if(item.ad_tag == 'PAGE_0002'){
  86. adImg2.value = item;
  87. }
  88. }
  89. }else{
  90. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  91. console.log("错误位置:获取详情页广告列表")
  92. console.log("后端错误反馈:",adData.message)
  93. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  94. }
  95. }
  96. getAdData();
  97. //左侧导航
  98. const bottomMenu = ref([]);
  99. async function getPageMenu() {
  100. const mkdata = await requestDataPromise('/web/getWebsiteFooterCategory', {
  101. method: 'GET',
  102. query: {},
  103. });
  104. bottomMenu.value = mkdata.data;
  105. }
  106. getPageMenu();
  107. //列表
  108. const newsList = ref([]);
  109. let newslists = async () => {
  110. const listData = await requestDataPromise('/web/getWebsiteFooterCategoryList', {
  111. method: 'GET',
  112. query: {
  113. 'fcat_id':pageId,
  114. },
  115. });
  116. newsList.value = listData.data;
  117. }
  118. //获得列表
  119. newslists();
  120. //分页
  121. let changePage = (value) => {
  122. console.log("当前页码", value);
  123. page.value = value
  124. console.log(page.value);
  125. newslists()
  126. }
  127. //2.页面数据 end ---------------------------------------->
  128. //3 设置seo信息
  129. const setData = await requestDataPromise('/web/getWebsiteFootInfo', {
  130. method: 'GET',
  131. query: {},
  132. });
  133. let seoTitle = setData.data.website_head.title;
  134. let seoDescription = setData.data.website_head.description;
  135. let seoKeywords = setData.data.website_head.keywords;
  136. let seoSuffix = setData.data.website_head.suffix;
  137. let seoName = setData.data.website_head.website_name;
  138. useSeoMeta({
  139. title: seoTitle + "_" + seoSuffix,
  140. meta: [
  141. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix },
  142. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix }
  143. ]
  144. });
  145. //3.设置seo信息 end---------------------------------------->
  146. </script>
  147. <style lang="less" scoped>
  148. //导航条
  149. .breadcrumb {
  150. width: 100%;
  151. height: 22px;
  152. margin-bottom: 30px;
  153. font-family: Microsoft YaHei, Microsoft YaHei;
  154. font-weight: 400;
  155. font-size: 20px;
  156. color: #666666;
  157. line-height: 23px;
  158. text-align: left;
  159. font-style: normal;
  160. text-transform: none;
  161. :deep(.el-breadcrumb) {
  162. display: inline-block;
  163. vertical-align: -4px;
  164. }
  165. :deep(.el-breadcrumb__inner a),
  166. :deep(.el-breadcrumb__inner.is-link) {
  167. color: #666666;
  168. font-weight: 400;
  169. text-decoration: none;
  170. transition: var(--el-transition-color);
  171. }
  172. span {
  173. font-family: Microsoft YaHei, Microsoft YaHei;
  174. font-weight: 400;
  175. font-size: 20px;
  176. color: #666666;
  177. line-height: 23px;
  178. text-align: left;
  179. font-style: normal;
  180. text-transform: none;
  181. }
  182. span:hover {
  183. color: #666666;
  184. }
  185. .location {
  186. margin-right: 20px;
  187. width: 100px;
  188. height: 22px;
  189. font-family: Microsoft YaHei, Microsoft YaHei;
  190. font-weight: 400;
  191. font-size: 20px;
  192. color: #666666;
  193. line-height: 23px;
  194. text-align: left;
  195. font-style: normal;
  196. text-transform: none;
  197. }
  198. }
  199. // 资讯列表
  200. .newsList {
  201. width: 100%;
  202. margin-bottom: 70px;
  203. .inner {
  204. width: 1200px;
  205. height: 1300px;
  206. .innerLeft {
  207. height: 65px;
  208. line-height: 65px;
  209. font-size: 22px;
  210. color: #028E21;
  211. font-weight: bold;
  212. }
  213. .innerTitle {
  214. font-size: 24px;
  215. }
  216. .innerLeft {
  217. float: right;
  218. >.list {
  219. height: 570px;
  220. margin-bottom: 70px;
  221. border-top: 1px solid #139602;
  222. >li {
  223. width: 790px;
  224. height: 60px;
  225. white-space: nowrap;
  226. overflow: hidden;
  227. text-overflow: ellipsis;
  228. line-height: 60px;
  229. //border-bottom: 1px solid #D9D9D9;
  230. >a {
  231. width: 360px;
  232. height: 26px;
  233. cursor: pointer;
  234. font-family: Microsoft YaHei, Microsoft YaHei;
  235. font-weight: 400;
  236. font-size: 20px;
  237. color: #333333;
  238. line-height: 26px;
  239. text-align: left;
  240. font-style: normal;
  241. text-transform: none;
  242. }
  243. }
  244. >li:hover>a {
  245. color: #139602;
  246. }
  247. >li:nth-child(1)::after,
  248. >li:nth-child(2)::after {
  249. content: "热";
  250. margin-left: 13px;
  251. background: #FF8A37;
  252. color: #fff;
  253. font-size: 14px;
  254. padding: 0px 2px;
  255. }
  256. >li:nth-child(5n) {
  257. border-bottom: 1px solid #D9D9D9;
  258. }
  259. }
  260. >.pagination {
  261. width: 800px;
  262. height: 34px;
  263. margin-left: 141px;
  264. display: flex;
  265. justify-content: center;
  266. margin: 0;
  267. // 鼠标移入后字体颜色
  268. .el-pagination::v-deep :hover {
  269. color: #139609;
  270. }
  271. .el-pagination.is-background::v-deep .btn-next,
  272. .el-pagination.is-background::v-deep .btn-prev {
  273. width: 70px;
  274. height: 34px;
  275. margin: 0px 10px;
  276. border-radius: 4px;
  277. }
  278. .el-pagination.is-background::v-deep .el-pager li {
  279. margin: 0px 10px;
  280. width: 38px;
  281. height: 34px;
  282. border-radius: 4px;
  283. }
  284. .el-pagination.is-background::v-deep .btn-next.is-active,
  285. .el-pagination.is-background::v-deep .btn-prev.is-active,
  286. .el-pagination.is-background::v-deep .el-pager li.is-active {
  287. background-color: #028e21;
  288. color: #fff;
  289. }
  290. }
  291. }
  292. .innerRight {
  293. width: 279px;
  294. .rightMenuTitle {
  295. width: 279px;
  296. height: 69px;
  297. font-size: 22px;
  298. font-weight: bold;
  299. line-height: 58px;
  300. text-align: center;
  301. color: #fff;
  302. background: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/special/projectMoreTitle.png") no-repeat;
  303. margin-bottom: 30px;
  304. }
  305. ul {
  306. li {
  307. a {
  308. border-left: 5px solid #028E21;
  309. margin-bottom: 15px;
  310. font-size: 22px;
  311. display: block;
  312. height: 61px;
  313. line-height: 61px;
  314. color: #333333;
  315. text-align: center;
  316. background: #FBFBFB;
  317. }
  318. }
  319. }
  320. .active {
  321. border-left: 0;
  322. border: 1px solid #028E21;
  323. background: #fff;
  324. }
  325. }
  326. }
  327. }
  328. //资讯推荐
  329. .zixuntuijian {
  330. width: 100%;
  331. height: 290px;
  332. margin-bottom: 70px;
  333. .innerLeft {
  334. // 左侧
  335. .zixunLeft {
  336. margin-right: 30px;
  337. }
  338. .zixunRight,
  339. .zixunLeft {
  340. float: left;
  341. width: 380px;
  342. height: 290px;
  343. // 标题部分
  344. >.title {
  345. width: 380px;
  346. }
  347. >.title>h3 {
  348. height: 36px;
  349. font-family: Source Han Sans, Source Han Sans;
  350. font-weight: bold;
  351. font-size: 24px;
  352. color: #000000;
  353. line-height: 28px;
  354. text-align: left;
  355. font-style: normal;
  356. text-transform: none;
  357. border-bottom: 1px solid #139602;
  358. }
  359. >.title>h3>span {
  360. float: right;
  361. width: 56px;
  362. height: 20px;
  363. line-height: 24px;
  364. font-weight: 400;
  365. font-size: 14px;
  366. color: #999999;
  367. font-style: normal;
  368. text-transform: none;
  369. }
  370. .photo_text {
  371. >li:first-child {
  372. width: 380px;
  373. height: 120px;
  374. margin-top: 20px;
  375. margin-bottom: 15px;
  376. position: relative;
  377. >img {
  378. float: left;
  379. width: 160px;
  380. height: 120px;
  381. }
  382. >div {
  383. float: left;
  384. width: 220px;
  385. height: 120px;
  386. padding-left: 15px;
  387. padding-top: 6px;
  388. box-sizing: border-box;
  389. background-color: #f6f6f6;
  390. >h5 {
  391. width: 200px;
  392. height: 54px;
  393. display: -webkit-box;
  394. -webkit-box-orient: vertical;
  395. -webkit-line-clamp: 2;
  396. overflow: hidden;
  397. text-overflow: ellipsis;
  398. word-break: break-all;
  399. font-family: Source Han Sans, Source Han Sans;
  400. font-weight: 500;
  401. font-size: 18px;
  402. color: #333333;
  403. line-height: 26px;
  404. text-align: left;
  405. font-style: normal;
  406. text-transform: none;
  407. }
  408. >p {
  409. width: 200px;
  410. height: 22px;
  411. line-height: 20px;
  412. position: absolute;
  413. bottom: 5px;
  414. right: 0;
  415. >span {
  416. display: inline-block;
  417. // width: 100px;
  418. height: 18px;
  419. font-family: Source Han Sans, Source Han Sans;
  420. font-weight: 400;
  421. font-size: 12px;
  422. color: #999999;
  423. text-align: left;
  424. line-height: 14px;
  425. font-style: normal;
  426. text-transform: none;
  427. }
  428. >span:last-child {
  429. // width: 90px;
  430. text-align: right;
  431. margin-left: 20px;
  432. }
  433. }
  434. }
  435. }
  436. >li {
  437. width: 380px;
  438. height: 25px;
  439. white-space: nowrap;
  440. overflow: hidden;
  441. text-overflow: ellipsis;
  442. font-family: PingFang SC, PingFang SC;
  443. font-weight: 500;
  444. font-size: 18px;
  445. color: #333333;
  446. line-height: 21px;
  447. text-align: left;
  448. font-style: normal;
  449. text-transform: none;
  450. margin-bottom: 10px;
  451. em {
  452. display: inline-block;
  453. width: 8px;
  454. height: 8px;
  455. border-radius: 8px;
  456. margin-right: 10px;
  457. background-color: #d9d9d9;
  458. }
  459. }
  460. >li:hover {
  461. color: #139602;
  462. }
  463. >li:hover em {
  464. background-color: #139602;
  465. }
  466. }
  467. }
  468. }
  469. .innerRight {
  470. width: 381px;
  471. height: 290px;
  472. background-color: #fbfbfb;
  473. >.title {
  474. width: 380px;
  475. height: 40px;
  476. line-height: 40px;
  477. border-top: 1px solid #139602;
  478. border-bottom: 1px solid #e7e7e7;
  479. >h4 {
  480. font-family: Microsoft YaHei, Microsoft YaHei;
  481. font-weight: 400;
  482. margin-left: 20px;
  483. font-size: 20px;
  484. color: #000000;
  485. text-align: left;
  486. font-style: normal;
  487. text-transform: none;
  488. >span {
  489. float: right;
  490. font-family: Microsoft YaHei, Microsoft YaHei;
  491. font-weight: 400;
  492. font-size: 14px;
  493. margin-right: 10px;
  494. color: #999999;
  495. text-align: left;
  496. font-style: normal;
  497. text-transform: none;
  498. }
  499. }
  500. }
  501. .rightList {
  502. height: 540px;
  503. margin-top: 20px;
  504. >li {
  505. height: 100px;
  506. margin-bottom: 10px;
  507. >img {
  508. width: 150px;
  509. height: 100px;
  510. }
  511. >p {
  512. width: 219px;
  513. height: 100px;
  514. padding-left: 12px;
  515. font-family: PingFang SC, PingFang SC;
  516. font-weight: 400;
  517. font-size: 16px;
  518. color: #333333;
  519. line-height: 22px;
  520. text-align: left;
  521. font-style: normal;
  522. text-transform: none;
  523. }
  524. >p:hover {
  525. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  526. }
  527. }
  528. }
  529. }
  530. }
  531. .projectMoreBox {
  532. margin: 0 auto;
  533. height: 540px;
  534. margin-top: 20px;
  535. background: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/special/projectMoreBg.png") no-repeat;
  536. margin-bottom: 40px;
  537. .projectMoreTitle {
  538. color: #028E21;
  539. padding-top: 20px;
  540. font-size: 26px;
  541. padding-left: 204px;
  542. }
  543. .projectMoreText {
  544. padding: 40px;
  545. font-size: 20px;
  546. color: #333333;
  547. text-indent: 2em;
  548. line-height: 36px;
  549. }
  550. }
  551. </style>